package com.droowa.domain;

import java.io.Serializable;
import java.util.Date;

public class ExchangeManagement implements Serializable {
	private int orderNumber;
	private String orderer;
	private String productName;
	private Date exchangeDate;
	private String exchangeProcess;
	public ExchangeManagement() {
		super();
	}
	public ExchangeManagement(int orderNumber, String orderer,
			String productName, Date exchangeDate, String exchangeProcess) {
		super();
		this.orderNumber = orderNumber;
		this.orderer = orderer;
		this.productName = productName;
		this.exchangeDate = exchangeDate;
		this.exchangeProcess = exchangeProcess;
	}
	public int getOrderNumber() {
		return orderNumber;
	}
	public void setOrderNumber(int orderNumber) {
		this.orderNumber = orderNumber;
	}
	public String getOrderer() {
		return orderer;
	}
	public void setOrderer(String orderer) {
		this.orderer = orderer;
	}
	public String getProductName() {
		return productName;
	}
	public void setProductName(String productName) {
		this.productName = productName;
	}
	public Date getExchangeDate() {
		return exchangeDate;
	}
	public void setExchangeDate(Date exchangeDate) {
		this.exchangeDate = exchangeDate;
	}
	public String getExchangeProcess() {
		return exchangeProcess;
	}
	public void setExchangeProcess(String exchangeProcess) {
		this.exchangeProcess = exchangeProcess;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((exchangeDate == null) ? 0 : exchangeDate.hashCode());
		result = prime * result
				+ ((exchangeProcess == null) ? 0 : exchangeProcess.hashCode());
		result = prime * result + orderNumber;
		result = prime * result + ((orderer == null) ? 0 : orderer.hashCode());
		result = prime * result
				+ ((productName == null) ? 0 : productName.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ExchangeManagement other = (ExchangeManagement) obj;
		if (exchangeDate == null) {
			if (other.exchangeDate != null)
				return false;
		} else if (!exchangeDate.equals(other.exchangeDate))
			return false;
		if (exchangeProcess == null) {
			if (other.exchangeProcess != null)
				return false;
		} else if (!exchangeProcess.equals(other.exchangeProcess))
			return false;
		if (orderNumber != other.orderNumber)
			return false;
		if (orderer == null) {
			if (other.orderer != null)
				return false;
		} else if (!orderer.equals(other.orderer))
			return false;
		if (productName == null) {
			if (other.productName != null)
				return false;
		} else if (!productName.equals(other.productName))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "ExchangeManagement [orderNumber=" + orderNumber + ", orderer="
				+ orderer + ", productName=" + productName + ", exchangeDate="
				+ exchangeDate + ", exchangeProcess=" + exchangeProcess + "]";
	}
	
	
}
